using System;
using System.Collections.Generic;
using System.Text;

namespace Bamboo.Core.Data
{
    public enum SearchOperator
    {
        LIKE,
        GREATER,
        GREATER_EQUAL,
        SMALLER,
        SMALLER_EQUAL,
        EQUAL,
        IS
    }

    public class SearchCondition
    {
        private string searchField;
        private string searchParameterName;
        private object searchParameterValue;
        private SearchOperator searchOperator;

        public SearchOperator SearchOperator
        {
            get { return searchOperator; }
            set { searchOperator = value; }
        }
	
        public object SearchParameterValue
        {
            get { return searchParameterValue; }
            set { searchParameterValue = value; }
        }
	
        public string SearchParameterName
        {
            get { return searchParameterName; }
            set { searchParameterName = value; }
        }
	
        public string SearchField
        {
            get { return searchField; }
            set { searchField = value; }
        }
        public SearchCondition Clone()
        {
            SearchCondition newSearchCondition = new SearchCondition();
            newSearchCondition.SearchField = this.SearchField;
            newSearchCondition.SearchOperator = this.SearchOperator;
            newSearchCondition.SearchParameterName = this.SearchParameterName;
            newSearchCondition.SearchParameterValue = this.SearchParameterValue;
            return newSearchCondition;
        }
	
    }
}
